package cn.hhy.utils;

import java.util.List;

/**
 * 此类是专门返回GM要求的数据格式
 */
public class QueryResult<T> {

    private Long totals;
    private List<T> data;

    public QueryResult() {
    }

    public QueryResult(Long totals, List<T> data) {
        this.totals = totals;
        this.data = data;
    }

    public Long getTotals() {
        return totals;
    }

    public void setTotals(Long totals) {
        this.totals = totals;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }
}
